package com.gtenacg.cartoonservice.mapper;

import com.gtenacg.cartoonservice.pojo.model.Novel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 86198
 * @description 针对表【gt_novel(小说表)】的数据库操作Mapper
 * @createDate 2024-05-22 08:46:33
 * @Entity com.gtenacg.cartoonservice.pojo.model.Novel
 */
@Mapper
//@CacheNamespace
public interface NovelMapper {

    List<Novel> list();

    List<Novel> getByNids(List<Integer> nids);

    void insert(Novel novel);

    void update(Novel novel);

    void delete(List<Integer> nids);

    List<Novel> search(@Param("name") String name);

    List<Novel> random(Integer num);
}




